import React from 'react';
import {Checkbox, Icon, Card} from 'antd';
import  style from './index.less';


export default function (props) {
    return (
            <Card 
                title={
                    <Checkbox style={{marginLeft: 10}} onClick={() => {props.onClick && props.onClick()}}>{props.name}</Checkbox>                    
                }
                actions={[<Icon type="edit" />, <Icon type="delete" />]}
            >
                {props.desc}
            </Card>
    )
}